export default {
  addCounter(state,payload){
    payload.count += 1
  },
  addCart(state,payload){
    payload.count = 1
    state.cartList.push(payload)
  },
  //给商品添加checked属性
  Checked(state, {item,payload}) {
    item.checked = payload.checked
  }
}